<template>
  <div>
    <h2>Count</h2>
    <p>{{$store.state.num}}</p>
    <p>{{$store.getters.doubleNum}}</p>
    <button @click="$store.commit('increment')">累加Num</button>
    <button @click="$store.commit('incrementN',{n:2})">累加Num</button>
  </div>
</template>


<script>
export default {
  name:"Count",

}
</script>


<style></style>